home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: jupiter.planet.net!usenet
  2. From: Chris Kemp <chrisk@paladn.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: (no subject)
  5. Date: 14 Feb 1996 21:28:48 GMT
  6. Organization: Paladin Consultants, Inc.
  7. Message-ID: <4ftk6g$qkn@jupiter.planet.net>
  8. NNTP-Posting-Host: denv3.planet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
  13.  
  14. I am trying to develop a C++ app under DOS, which will control 
  15. motors.  The problem is that I have to get input from the user 
  16. in the form of commands (which may come from another computer 
  17. via rs232)
  18.  
  19. However, I need to be constantly checking condition of motors 
  20. and vacuums, etc during the process, and processing the 
  21. results of those checks.  
  22.  
  23. The cin.getline() routine would work just fine, except that I 
  24. can't afford to just wait for the cin (I have to be constantly 
  25. checking and polling and observing interrupts)
  26.  
  27. On the other hand, a kbhit/getche combination will be awkward 
  28. because of possible delays echoing the char back to the 
  29. (possibly) remote screen.
  30.  
  31. Is there an elegant way to accomplish this under a DOS 
  32. environment?
  33.  
  34. I sure would appreciate any suggestions.
  35.  
  36. TIA
  37.  
  38.